<?php

namespace App\Http\Resources;

use App\Http\Responses\Resource;

use App\Http\Resources\User as UserCollection;

class GivedGift extends Resource
{

    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request
     * @return array
     */
    public function toArray($request)
    {

        return [
            'send_user' => new UserCollection($this->sendUser),
            'count' => (int)$this->count
        ];
    }
}
